package com.aixin.project.data;

/**
 * Created by IntelliJ IDEA.
 * User: Sufeng
 * Date: 12-4-22
 * Time: 上午11:09
 * To change this template use File | Settings | File Templates.
 */
public class AxSession {
    private UserType userType;
    private long uid;
    private boolean rememberme;
    private long genseeuid;
    
    public AxSession(UserType userType,long uid,boolean rememberme,long genseeuid){
        this.userType = userType;
        this.uid = uid;
        this.rememberme = rememberme;
        this.genseeuid = genseeuid;
    }

    public long getGenseeuid() {
        return genseeuid;
    }

    public void setGenseeuid(long genseeuid) {
        this.genseeuid = genseeuid;
    }

    public UserType getUserType() {
        return userType;
    }

    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public boolean isRememberme() {
        return rememberme;
    }

    public void setRememberme(boolean rememberme) {
        this.rememberme = rememberme;
    }

    public boolean isUser(){
        return this.userType.equals(UserType.USER)?true:false;
    }

    public boolean isExpert(){
        return this.userType.equals(UserType.EXPERT)?true:false;
    }
}
